<?php
/**
 * Created by qinpeizhou.
 * Date: 2018/2/24
 * Time: 15:29
 * Email : 1031219129@qq.com
 */

include_once( dirname(__FILE__).'/../library/exception/BannerException.php');

class BannerModel extends BaseModel
{
     public function getBanners(){
         $sql =  "select id,sub_title,title,img_url,market_price,sell_price 
                  from dt_channel_article_goods where 
                  id in(select good_id from Banner) and is_slide=0";
         $banner = $this->db->query($sql);
         return $banner;
     }
}
